package com.jsmtr.rms.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import org.springframework.format.annotation.DateTimeFormat;

@Entity
@Table(name = "DUserRewardPunishment")
public class DUserRewardPunishment {

    @Id
    @Column(nullable = false, length = 50)
    private String id; // id

    @Column(nullable = false, length = 50)
    private String rid; // 应聘者简历ID

    @Column(nullable = false)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date gettime; // 获得时间

    @Column(nullable = true, length = 100)
    private String enterprise; // 奖励单位

    @Column(nullable = false, length = 100)
    private String name; // 奖励名称

    @Column(nullable = true, length = 1000)
    private String reason;  // 奖励原因

    public String getId() {
        return id;
    }

    public String getRid() {
        return rid;
    }

    public Date getGettime() {
        return gettime;
    }

    public String getEnterprise() {
        return enterprise;
    }

    public String getName() {
        return name;
    }

    public String getReason() {
        return reason;
    }

    public void setId(String id) {
        this.id = id;
    }

    public void setRid(String rid) {
        this.rid = rid;
    }

    public void setGettime(Date gettime) {
        this.gettime = gettime;
    }

    public void setEnterprise(String enterprise) {
        this.enterprise = enterprise;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

}